package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2024/01/13
*/
@Data
@ApiModel("汇率，应该有定时任务每日凌晨更新")
@Table(name = "tbl_exchange_rate")
@NoArgsConstructor
@AllArgsConstructor
public class TblExchangeRate extends BaseEntity {
    /**
     * 待转货币
     */
    @Column(name = "base_name")
    @ApiModelProperty("待转货币")
    private String baseName;

    /**
     * 目标货币
     */
    @Column(name = "rate_name")
    @ApiModelProperty("目标货币")
    private String rateName;

    /**
     * 汇率
     */
    @Column(name = "rate_value")
    @ApiModelProperty("汇率")
    private BigDecimal rateValue;
}